"use strict";
cc._RF.push(module, '24c5cNGzEtHHLtueSVmOS3i', 'QQLogin');
// Script/Ssg/API/QQ/QQLogin.js

"use strict";

var QQLogin = cc.Class({

    statics: {

        startLogin: function startLogin(callback) {
            var openId = GameStatusInfo.openId;
            UserInfo.openId = openId;

            BK.MQQ.Account.getNick(openId, function (openID, nickName) {
                UserInfo.userName = nickName;
                UserInfo.userImg = openID; //QQ玩一玩直接通过openID去取头像

                var systemInfo = BK.getSystemInfoSync();
                UserInfo.userSex = systemInfo.sex;
                callback(true);
            });
        }
    }
});

module.exports = QQLogin;

cc._RF.pop();